using System;
using System.Data;
using System.Collections;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.Adapters;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace CSSFriendly
{
    public class Utility
    {
        static public void RegisterScripts(Page page)
        {
            Utility temp = new Utility();


            //BLK: Changed all the JavaScript needed by the adapters to use Embeded resources, this should make it heaps easier to
            //set up for new projects, because it will be included with the cms.

            //page.ClientScript.RegisterClientScriptInclude(temp.GetType(), temp.GetType().ToString(), page.ResolveUrl("~/JavaScript/AdapterUtils.js"));

            page.ClientScript.RegisterClientScriptInclude("AdapterUtilsResource",
                 page.ClientScript.GetWebResourceUrl(typeof(Utility), "Blazing.Web.Resources.JavaScript.AdapterUtils.js"));

            
        }
    }
}
